﻿using System;
using System.Composition;
using MEF2Test.Contract;

namespace AddInTest.HelloWorld
{
	[Export(typeof(IFanAddInEntry))]
	public class GreetingPlugin : IFanAddInEntry
	{
		#region properties
		public string Description => "hello, world!";

		public string Name => "fanbal";
		
		#endregion

		#region mothods
		public void Run()
		{
			for (int i = 0; i < 10; i++)
				Console.WriteLine("hello, world!");
		}
		
		#endregion

	}
}

namespace BullShit.FxxkWorld
{
	[Export(typeof(IFanAddInEntry))]
	public class FxxkHolySxxtPlugin : IFanAddInEntry
	{
		#region properties
		public string Description => "oh, shit!";

		public string Name => "fan♂bal";

		#endregion

		#region mothods
		public void Run()
		{
			for (int i = 0; i < 10; i++)
			{
				for(int j = 0; j<i; j++)
				{
					Console.Write("shit!");
				}
				Console.WriteLine();
			}
			Console.WriteLine();
		}

		#endregion

	}
}

